import request from '@/utils/request'
const prefix = '/md_sys_jobtitle'

export function getAllJobTitleList(data) {
  return request({
    url: `${prefix}/getAllJobTitleList`, method: 'post', data
  })
}

export function getJobTitleList(data) {
  return request({
    url: `${prefix}/getJobTitleList`, method: 'post', data
  })
}

export function createJobTitle(data) {
  return request({
    url: `${prefix}/createJobTitle`, method: 'post', data
  })
}

export function updateJobTitle(data) {
  return request({
    url: `${prefix}/updateJobTitle`, method: 'post', data
  })
}

export function deleteJobTitle(id) {
  return request({
    url: `${prefix}/deleteJobTitle/${id}`, method: 'delete'
  })
}
